﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using BLL;
using DAL.Linq;

namespace InvoiceManagement.Controllers
{
    public class DM_KHACHHANGController
    {
        private static IDMKHACHHANG_Dao DM_KhachHangController = DataAccess.DMKHACHHANG_Dao;

        public bool DM_KhachHang_Insert(string MaKhachHang, string TenKhachHang, string TenCongTy, string DiaChi, string DienThoai, string Fax, string Website, string TaiKhoan, string MaSoThue, bool IsUse, int CreateBy)
        {
            return DM_KhachHangController.DM_KhachHang_Insert(MaKhachHang, TenKhachHang, TenCongTy, DiaChi, DienThoai, Fax, Website, TaiKhoan, MaSoThue, IsUse, CreateBy);
        }

        public bool DM_KhachHang_Update(string MaKhachHang, string TenKhachHang, string TenCongTy, string DiaChi, string DienThoai, string Fax, string Website, string TaiKhoan, string MaSoThue, bool IsUse, int CreateBy, int ModifiedBy, DateTime ModifiedOn)
        {
            return DM_KhachHangController.DM_KhachHang_Update(MaKhachHang, TenKhachHang, TenCongTy, DiaChi, DienThoai, Fax, Website, TaiKhoan, MaSoThue, IsUse, CreateBy,ModifiedBy, ModifiedOn);
        }

        public bool DM_KhachHang_Delete(string MaKhachHang)
        {
            return DM_KhachHangController.DM_KhachHang_Delete(MaKhachHang);
        }

        public IList<DMKHACHHANG> GetAll_DMKhachHang()
        {
            return DM_KhachHangController.GetAll_KhachHang();
        }
    }
}
